package singleton;

import org.junit.Test;

/**
 * Created by head79 on 2017/7/12.
 */
public class EagerSingleton {
    private static  EagerSingleton instance = new EagerSingleton();

    private EagerSingleton(){}

    public static EagerSingleton getInstance(){
        return instance;
    }
    @Test
    public void b(){
        LazySingleton lazySingleton = LazySingleton.getInstance();
    }
}
